package com.luoxue.execsql.common.util;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private String createdBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private String updatedBy;

    @TableField(fill = FieldFill.INSERT)
    private Integer deleteFlag;

    private String remark;

    @TableField(exist = false)
    private Long pageNum;

    @TableField(exist = false)
    private Long pageSize;
}
